import request from '@/utils/request';

export const _login = data => {
  return request.post('/sys/login', data);
};
export const _getUserInfo = () => {
  return request.get('/sys/profile');
};

export const _updatePassword = passwordObj => {
  return request.put('/sys/user/updatePass', passwordObj);
};

export const _getQrcodeKey = () => {
  return request.get('/sys/qrcodeKey');
};

export const _getQrcodeState = key => {
  return request.get('/sys/qrcodeState', {
    params: {
      qrcode_key: key,
    },
  });
};
